package org.example.config;


import org.example.bean.MyBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @@ConditionalOnBean这个条件是不能和@Configuration
 * 所以放在自定义的一个新配置类中，然后把该配置类通过在原始自动配置的哪个类中
 * 通过@AutoConfigureAfter(value = {AfterConfig.class})
 */
@ConditionalOnBean(value = {MyBean.class})
@ComponentScan(basePackages = "org.example.bean")
public class AfterConfig {

}
